<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>编辑银行卡</title>


<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" /><link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
	var $browserButton = $("#browserButton");

	[@flash_message /]

	$browserButton.browser();

	// 表单验证
	$inputForm.validate({
		rules: {
            name: "required",
            cardNumber: "required",
            subBranch: "required",
            type: "required"
		}
	});

});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 编辑银行卡
	</div>
		<input type="hidden" name="id" value="${bankCard.id}" />
		<table class="input">
            <tr>
                <th>
                    icon:
                </th>
                <td>
                    <img class="preImage" src="${bankCard.icon}" />
                </td>
            </tr>
            <tr>
                <th>
                    商家:
                </th>
                <td>
                    ${bankCard.merchant.username}
                </td>
            </tr>
            <tr>
                <th>
                    真实姓名:
                </th>
                <td>
                    ${bankCard.name}
                </td>
            </tr>
            <tr>
                <th>
                   卡号:
                </th>
                <td>
                ${bankCard.cardNumber}
                </td>
            </tr>
            <tr>
                <th>
                   开户行:
                </th>
                <td>
                ${bankCard.subBranch}
                </td>
            </tr>
            <tr>
                <th>
                    卡型:
                </th>
                <td>
                    [#if bankCard.type == "deposit"]储蓄卡[/#if]
                    [#if bankCard.type == "credit"]信用卡[/#if]
                </td>
            </tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.htm'" />
				</td>
			</tr>
		</table>
</body>
</html>
